package com.example.test_activity.utils;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;

/**
 * Created by 旭 on 2017/3/26/026.
 */

public class DecideLogin {

    public boolean decide(String html)
    {
        Document document = Jsoup.parse(html);
        Elements elements_1 = document.select("[name=topFrame]");
        Elements elements_2 = document.select("[name=bottomFrame]");

        if (elements_1.isEmpty() || elements_2.isEmpty())
        {
            return false;
        }else {
            return true;
        }
    }
}
